package com.github.pig.admin.mapper.park;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.github.pig.admin.model.park.EmployeeInfo;
import com.github.pig.admin.model.park.UserAppDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author sxf
 * @since 2018-12-17
 */
public interface EmployeeInfoMapper extends BaseMapper<EmployeeInfo> {

    List<UserAppDto> selectComByUserName(@Param("username") String username,@Param("code")String defaultCode);

    /**
     * 默认企业
     * @param companyId 企业ID
     * @param username 手机号
     * @param code 是否默认
     */
    void updateDefaultCompany(@Param("companyId") Integer companyId, @Param("username") String username, @Param("code") String code);
}
